package com.yxzz.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 中医诊断记录对象 p_diagnosis_record
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
public class PDiagnosisRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 病人ID */
    @Excel(name = "病人ID")
    private Long patientId;

    /** 主诉 */
    @Excel(name = "主诉")
    private String chiefComplaint;

    /** 并发症症状 */
    @Excel(name = "并发症症状")
    private String syndrome;

    /** 诊断 */
    @Excel(name = "诊断")
    private String diagnosis;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 诊断记录与治疗药方等的关系信息 */
    private List<PDiagnosisRelationship> pDiagnosisRelationshipList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setChiefComplaint(String chiefComplaint) 
    {
        this.chiefComplaint = chiefComplaint;
    }

    public String getChiefComplaint() 
    {
        return chiefComplaint;
    }
    public void setSyndrome(String syndrome) 
    {
        this.syndrome = syndrome;
    }

    public String getSyndrome() 
    {
        return syndrome;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public List<PDiagnosisRelationship> getPDiagnosisRelationshipList()
    {
        return pDiagnosisRelationshipList;
    }

    public void setPDiagnosisRelationshipList(List<PDiagnosisRelationship> pDiagnosisRelationshipList)
    {
        this.pDiagnosisRelationshipList = pDiagnosisRelationshipList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patientId", getPatientId())
            .append("chiefComplaint", getChiefComplaint())
            .append("syndrome", getSyndrome())
            .append("diagnosis", getDiagnosis())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("pDiagnosisRelationshipList", getPDiagnosisRelationshipList())
            .toString();
    }
}
